import request from '@/utils/request';
// import { TableListParams, TableListItem } from './data.d';

interface QuestionParams {
  pid: number;
  getNext: boolean;
}

interface MainbodyListProps {}

interface SubmitParams {
  pid: number;
  tid: string;
  sourceId: string;
  scoreTime: string;
  typeId: string;
  poolId: number;
  auditRecordId: number;
  submitType: number;
  mainbodyList: Array<MainbodyListProps>;
}

export async function getQuestion(params: QuestionParams) {
  return request('/service/partTimerWb/topic/selectQuestion', {
    method: 'POST',
    data: params,
  });
}

export async function submitQuestion(params: SubmitParams) {
  return request('/service/partTimerWb/topic/addreply', {
    method: 'POST',
    data: params,
  });
}
